<template>
	<view class="list">
		<view @click="send(item.id)" class="list-item" v-for="(item,index) in type" :key="index">
			<u-image width="91upx" height="91upx" :src="item.src" mode=""></u-image>
			<!-- <image width="45px" height="45px" :src="item.src" mode=""></img> -->
			<text>{{item.name}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name: "homeType",
		data() {
			return {

			};
		},
		methods:{
			send(id){
				uni.navigateTo({
					url:'/subpag/goods_list/goods_list?id=' + id
				})
			}
		},
		props: ['type']
	}
</script>

<style scoped lang="scss">
	.list {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;

		view {
			display: flex;
			align-items: center;
			flex-direction: column;
			color: #333333;
			font-size: 24upx;
			font-weight: 600;

			text {
				margin-top: 10upx;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				line-height: 26rpx;
				letter-spacing: 0rpx;
				color: #333333;
			}
		}
	}
</style>
